package com.igd.business.dao;

import java.sql.SQLException;
import java.util.List;

import com.igd.exceptions.IgdException;
import com.igd.pojo.vo.PageList;
import com.igd.security.Resources;

 /**
 * @version  1.0
 *
 * @author   QIAOYU
 *
 * @date     2013-7-5
 *
 * @description	 平台资源信息Dao接口
 */

public interface IResDao {
	
	/**
	 * 修改平台资源信息
	 * 
	 * @param resources
	 * 
	 * @throws SQLException
	 * 
	 * @throws IgdException
	 */
	void updResources(Resources resources) throws SQLException, IgdException;
	
	/**
	 * 新增平台资源信息
	 * 
	 * @param resources
	 * 
	 * @return
	 * 
	 * @throws IgdException 
	 * 
	 * @throws SQLException 
	 */
	Resources insertResources(Resources resources) throws SQLException, IgdException;
	
	/**
	 * 删除平台资源信息
	 * 
	 * @param resources
	 * 
	 * @throws IgdException
	 *  
	 * @throws SQLException 
	 */
	void deleteResources(Resources resources) throws SQLException, IgdException;
	
	/**
	 * 获取平台所有资源信息
	 * 
	 * @param pageList
	 * 
	 * @param res
	 * 
	 * @return
	 * 
	 * @throws IgdException 
	 * 
	 * @throws SQLException 
	 */
	List<Resources> queryAllRes(PageList pageList,Resources res) throws SQLException, IgdException;
	
	/**
	 * 获取资源信息数据
	 * 
	 * @param res
	 * 
	 * @return
	 * 
	 * @throws IgdException 
	 * 
	 * @throws SQLException 
	 */
	Resources queryResInfo(Resources res) throws SQLException, IgdException;
}
